import { Font, Color, TextContent } from "../util";
import { Component } from "./Component";

export class TextLabel extends Component {
    /**
     * 基础属性
     */
    //TextLabel类型
    public type = 3
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "label_2"


    //文本内容
    public text: TextContent
    //字体颜色
    public font_color: Color
    //字体
    public font: Font
    //对齐方式  
    //水平 1 左 2 中 4 右 默认1
    //垂直 0 上 8 中 16 下 默认8
    public alignment: [number, number]
    //行间距
    public line_space: number
    //加粗
    public bold: boolean
    //斜体
    public italics: boolean
    //下划线
    publicunder_line: boolean
    //阴影
    public shadow: boolean

    //加粗 斜体 下划线 阴影 与上面对应 默认false
    public label_effect: [boolean, boolean, boolean, boolean]
    //超框处理 0 1 2
    public over_pattern: number
    //最小字体 默认15
    public font_min_size: number = 15

    //文本动画 0123
    public typewriter_effect: number
    //打字间隔
    public typewriter_space: number
}